﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AjaxUpload.aspx.cs" Inherits="Ajax_AjaxUpload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Upload file</title>

    <script type="text/javascript">
    function upload(fileName)
    {
        var divMsg = window.parent.document.getElementById("divUploadMessage");
        divMsg.innerHTML = divMsg.innerHTML + fileName +"<br>";
    }
    </script>

</head>
<body>
    <form id="photoUpload" enctype="multipart/form-data" runat="server">
    <div>
        <input id="filUpload" type="file" runat="server" />
        <asp:Button runat="server" ID="btnUpload" Text="Upload" OnClick="btnUpload_Click" />
    </div>
    </form>
</body>
</html>
